<?php
/*
 *
 * @author     Mark <zhaody901@126.com>
 * @copyright  Copyright (c) 2013 lemon team
 * @version    $Id: d93014879a2bada98e5c9f85bc30ab0a39f5ed06 $
 *
 */

defined('IN_IXDCW') or exit('Access Denied');
require DT_CORE.'/'.MODULE_NAME.'/common.inc.php';
// 是否启用这个模块
$MOD['live_enable'] or dheader(SITE_URL);

// 初始化和加载处理过程
$live = new Live();
$kw   = getgpc('kw');
// 保留, 待考证
switch (mb_detect_encoding($kw, array('UTF-8', 'GBK'))) {
	case 'GBK': //如果是gbk编码
		$kw = mb_convert_encoding($kw, 'UTF-8', 'GBK');
		break;
	case 'GB2312': //如果是gbk编码
		$kw = mb_convert_encoding($kw, 'UTF-8', 'GB2312');
		break;
	case 'CP936': //如果是gbk编码
		$kw = mb_convert_encoding($kw, 'UTF-8', 'CP936');
		break;
}
// 区域选择
$lAreaId = Area::ip2cityid($DT_IP);

$servicer = $live->servicerSearch($aid, 0, Live::RETURN_TYPE_ARRAY);
$comCate  = $live->comCate();

// 模版
include template('index', MODULE_NAME);